projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2907b8
)
GtkSwitch: implement clipping
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 18 Jul 2014 20:37:18 +0000
(16:37 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 18 Jul 2014 20:37:18 +0000
(16:37 -0400)
So switches can have shadows, too.
https://bugzilla.gnome.org/show_bug.cgi?id=733360
gtk/gtkswitch.c
patch
|
blob
|
history
diff --git
a/gtk/gtkswitch.c
b/gtk/gtkswitch.c
index 5677fa8b888cd362812a93662b9e69d77c040fa2..9ba4b65b207525d9ae1720c2e38791953aa51548 100644
(file)
--- a/
gtk/gtkswitch.c
+++ b/
gtk/gtkswitch.c
@@
-51,6
+51,7
@@
#include "gtkactionable.h"
#include "a11y/gtkswitchaccessible.h"
#include "gtkactionhelper.h"
+#include "gtkwidgetprivate.h"
#include <math.h>
@@
-388,6
+389,8
@@
gtk_switch_size_allocate (GtkWidget *widget,
allocation->y,
allocation->width,
allocation->height);
+
+ _gtk_widget_set_simple_clip (widget);
}
static void